<span class='title_page'>Editando Usuários</span>
<br/>
<div class="form">
    <% form_for(:user, :url => user_path(@user), :html => { :method => :put }) do |f| %>
        <%= error_messages_for :user %>
        <fieldset class="colunas">
            <div class="coluna-1">
                <p>
                    <%= f.label :login, 'Usuários' %>
                    <%= f.text_field :login, {:size => 30, :class => "input-text-layout" }%>
                </p>

                <p>
                    <%= f.label :email, 'Email' %>
                    <%= f.text_field :email, {:size => 30, :class => "input-text-layout" }%></p>

                <p>
                    <%= f.label :password, 'Senha:' %>
                    <%= f.password_field :password, {:size => 30, :class => "input-text-layout" }%></p>

                <p>
                    <%= f.label :password_confirmation, 'Confirma a senha:' %>
                    <%= f.password_field :password_confirmation, {:size => 30, :class => "input-text-layout" }%></p>

                <p>
                    <%= f.label :tipouser_id, 'Tipo de Usuário:' %>
                    <%= select :user, :tipouser_id, @tipousers, {:include_blank => true, :size => 30},{:class => "comboBox"} %></p>

                <p>
				<%= submit_tag 'Enviar', :class => "input-submit" %>
				<%= button_to_function "Voltar", "javascript:window.history.go(-1)", :class => "input-submit" %>
				</p>
            </div>
        </fieldset>
    <% end -%>
</div>
